// pages/company/companyCreatSuc/companyCreatSuc.js
const app = getApp()
var that;
var util = require('../../../utils/util.js');
Page({

  data: {
    companyObj:{},
  },

  onLoad: function (options) {
    that = this;
    
    wx.getStorage({
      key: 'companyObj',
      success: function(res) {
        that.setData({
          companyObj: res.data
        })
      },
    })
    console.log("data",that.data)
  },

  // 点击预览二维码
  prevImgFun:function(){
    wx.previewImage({
      urls: [that.data.companyObj.ma] // 需要预览的图片http链接列表
    })
  },

  toIndexFun:function(){
    wx.switchTab({
      url: '/pages/index/index',
    })
  }
  

  
})